<img id="theimg" src="" border="0"/>
<script>
  var tmp = location.toString();
  theimg.src=tmp.substring(tmp.indexOf("?")+1);
</script>